package com.yyfax.pay.vo.consloe;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class ExceptionRecord {
    /**
     * 自增主键
     */
    private Integer id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 业务主键
     */
    private String busiId;

    /**
     * 业务名称
     */
    private String busiName;

    /**
     * 订单时间
     */
    private String orderTime;

    /**
     * 订单金额
     */
    private Long amount;

    /**
     * 异常message
     */
    private String expMessage;

    /**
     * 状态 0-未处理，1-处理成功，2-处理失败
     */
    private Integer state;


    /**
     * 处理时间
     */
    private Date resolveTime;

    /**
     * 自增主键
     *
     * @return id 自增主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 自增主键
     *
     * @param id id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 业务主键
     *
     * @return busi_id 业务主键
     */
    public String getBusiId() {
        return busiId;
    }

    /**
     * 业务主键
     *
     * @param busiId busi_id
     */
    public void setBusiId(String busiId) {
        this.busiId = busiId == null ? null : busiId.trim();
    }

    /**
     * 业务名称
     *
     * @return busi_name 业务名称
     */
    public String getBusiName() {
        return busiName;
    }

    /**
     * 业务名称
     *
     * @param busiName busi_name
     */
    public void setBusiName(String busiName) {
        this.busiName = busiName == null ? null : busiName.trim();
    }

    /**
     * 订单时间
     *
     * @return order_time 订单时间
     */
    public String getOrderTime() {
        return orderTime;
    }

    /**
     * 订单时间
     *
     * @param orderTime order_time
     */
    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime == null ? null : orderTime.trim();
    }

    /**
     * 异常message
     *
     * @return exp_message 异常message
     */
    public String getExpMessage() {
        return expMessage;
    }

    /**
     * 异常message
     *
     * @param expMessage exp_message
     */
    public void setExpMessage(String expMessage) {
        this.expMessage = expMessage == null ? null : expMessage.trim();
    }


    /**
     * 状态 0-未处理，1-处理成功，2-处理失败
     *
     * @return state 状态 0-未处理，1-处理成功，2-处理失败
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态 0-未处理，1-处理成功，2-处理失败
     *
     * @param state state
     */
    public void setState(Integer state) {
        this.state = state;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public Date getResolveTime() {
        return resolveTime;
    }

    public void setResolveTime(Date resolveTime) {
        this.resolveTime = resolveTime;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
